package com.renit.gallery.datasouce

import android.content.Context
import androidx.paging.DataSource
import com.renit.gallery.PhotoItem

class PixabayDataSourceFactory(private val context: Context): DataSource.Factory<Int, PhotoItem>() {
    /**
     * 创建一个DataSource对象并返回
     */
    override fun create(): DataSource<Int, PhotoItem> {
        return PixabayDataSource(context)
    }
}